package com.example.petshopping.model;

/**
 * 拍卖商品数据模型
 */
public class Product {
    // 拍卖id
    private String id;
    // 商品id
    private String spuId;
    // 拍卖商品名称
    private String name;
    // 拍卖商品图片
    private String imageUrl;
    // 拍卖商品价格
    private String price;
    // 卖家id
    private String sellerId;
    // 卖家头像
    private String sellerAvatar;
    // 卖家名称
    private String sellerName;
    // 拍卖结束时间
    private String auctionEndTime;
    // 是否是精选商品
    private boolean isPromoted;

    public Product() {
    }

    public Product(String id, String name, String imageUrl, String price) {
        this.id = id;
        this.name = name;
        this.imageUrl = imageUrl;
        this.price = price;
    }
    
    public Product(String id, String spuId,String name, String imageUrl, String price, String sellerId,String sellerName,String sellerAvatar, String auctionEndTime) {
        this.id = id;
        this.spuId = spuId;
        this.name = name;
        this.imageUrl = imageUrl;
        this.price = price;
        this.sellerId = sellerId;
        this.sellerName = sellerName;
        this.sellerAvatar = sellerAvatar;
        this.auctionEndTime = auctionEndTime;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getImageUrl() {
        return imageUrl;
    }

    public void setImageUrl(String imageUrl) {
        this.imageUrl = imageUrl;
    }

    public String getPrice() {
        return price;
    }

    public void setPrice(String price) {
        this.price = price;
    }
    
    public String getSellerName() {
        return sellerName;
    }

    public void setSellerName(String sellerName) {
        this.sellerName = sellerName;
    }

    public String getAuctionEndTime() {
        return auctionEndTime;
    }

    public void setAuctionEndTime(String auctionEndTime) {
        this.auctionEndTime = auctionEndTime;
    }
    
    public boolean isPromoted() {
        return isPromoted;
    }

    public void setPromoted(boolean promoted) {
        isPromoted = promoted;
    }

    public String getSellerAvatar() {
        return sellerAvatar;
    }

    public void setSellerAvatar(String sellerAvatar) {
        this.sellerAvatar = sellerAvatar;
    }
    public String getSpuId() {
        return spuId;
    }

    public void setSpuId(String spuId) {
        this.spuId = spuId;
    }

    public String getSellerId() {
        return sellerId;
    }

    public void setSellerId(String sellerId) {
        this.sellerId = sellerId;
    }


} 